import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const basicSettingsApi = {
    //司机账号管理列表
    getDriverAccountList(params) {
        let url = TCHYURL + "/supplier/driver/getSupplierDriver";
        return myaxios.post(url, params);
    },
    // 以下全是核心平台的接口  

    getStaffList(params) {
        let url = TCHYURL + '/system/user/getSysStaffList'
        return myaxios.get(url, params)
    },
    // 修改用户状态
    updateUserStatus(params) {
        let url = TCHYURL + '/system/user/updateUserStatusByUserId'
        return myaxios.get(url, params)
    },
    //新增账号
    addAccount(params) {
        let url = TCHYURL + '/system/user/addSysUser'
        return myaxios.post(url, params)
    },
    // 账号验重
    checkUserName(params) {
        let url = TCHYURL + '/system/user/checkUserName'
        return myaxios.get(url, params)
    },
    //编辑账号信息
    updataAccount(params) {
        let url = TCHYURL + '/system/user/updateSysUser'
        return myaxios.post(url, params)
    },
    //修改密码
    updatePassword(params) {
        let url = TCHYURL + '/system/user/updatePassword'
        return myaxios.post(url, params)
    },
    resetPassword(params) {
        let url = TCHYURL + '/system/user/resetPassword'
        return myaxios.get(url, params)
    },
    removeUser(params) {
        let url = TCHYURL + '/system/user/remove'
        return myaxios.Delete(url, params)
    },


    //获取角色
    getRoles(params) {
        let url = TCHYURL + '/system/role/optionselect'
        return myaxios.get(url, params)
    },
    //获取部门
    getDepartment(params) {
        let url = TCHYURL + '/system/dept/list'
        return myaxios.get(url, params)
    },
	//会员开户
	memberOpenAnAccount(params) {
	    let url = TCHYURL + '/order/bank/memberOpenAnAccount'
	    return myaxios.post(url, params)
	},
	//会员开户信息
	queryMemberOpenAnAccount(params) {
	    let url = TCHYURL + '/order/bank/queryMemberOpenAnAccount'
	    return myaxios.post(url, params)
	},
	//会员绑卡
	addBindingCard(params) {
	    let url = TCHYURL + '/order/bank/addBindingCard'
	    return myaxios.post(url, params)
	},
	//会员绑卡信息
	queryBindingCard(params) {
	    let url = TCHYURL + '/order/bank/queryBindingCard'
	    return myaxios.post(url, params)
	},
    // 银行名称信息
    getBankNameList(params){
        let url = TCHYURL + '/order/bank/queryBank'
	    return myaxios.get(url, params)  
    },
    // 新增地址信息
    getAddStoreAddr(params){
        let url = TCHYURL + '/order/assistOrder/addStoreAddr'
	    return myaxios.post(url, params)  
    },
     // 新增地址信息
    checkStoreNo(params){
        let url = TCHYURL + '/order/assistOrder/checkStoreNo'
	    return myaxios.get(url, params)  
    },
   
    
    

    


};
export default basicSettingsApi;
